package com.ruoyi.zhgd.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.math.BigDecimal;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 组织业务对象 sys_dept
 *
 * @author zyb
 * @date 2023-09-13
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class SysDeptBo extends BaseEntity {

    /**
     * 组织id
     */
    @NotNull(message = "部门id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long deptId;

    /**
     * 父部门id
     */
    @NotNull(message = "父部门id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long parentId;

    /**
     * 祖级列表
     */
    @NotBlank(message = "祖级列表不能为空", groups = { AddGroup.class, EditGroup.class })
    private String ancestors;

    /**
     * 部门名称
     */
    @NotBlank(message = "部门名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String deptName;

    /**
     * 显示顺序
     */
    @NotNull(message = "显示顺序不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer orderNum;

    /**
     * 负责人
     */
    @NotBlank(message = "负责人不能为空", groups = { AddGroup.class, EditGroup.class })
    private String leader;

    /**
     * 联系电话
     */
    @NotBlank(message = "联系电话不能为空", groups = { AddGroup.class, EditGroup.class })
    private String phone;

    /**
     * 邮箱
     */
    @NotBlank(message = "邮箱不能为空", groups = { AddGroup.class, EditGroup.class })
    private String email;

    /**
     * 部门状态（0正常 1停用）
     */
    @NotBlank(message = "部门状态（0正常 1停用）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 主键
     */
    @NotBlank(message = "主键不能为空", groups = { AddGroup.class, EditGroup.class })
    private String pkid;

    /**
     * id步长3 唯一
     */
    @NotBlank(message = "id步长3 唯一不能为空", groups = { AddGroup.class, EditGroup.class })
    private String id;

    /**
     * 上级ID
     */
    @NotBlank(message = "上级ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String pid;

    /**
     * 所有上级ID，用逗号分开 废弃
     */
    @NotBlank(message = "所有上级ID，用逗号分开 废弃不能为空", groups = { AddGroup.class, EditGroup.class })
    private String pids;

    /**
     * 部门名称
     */
    @NotBlank(message = "部门名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 1 单位 2 部门  3分组
     */
    @NotBlank(message = "1 单位 2 部门  3分组不能为空", groups = { AddGroup.class, EditGroup.class })
    private String type;

    /**
     * 排序默认和id一致为了统一排序方便
     */
    @NotBlank(message = "排序默认和id一致为了统一排序方便不能为空", groups = { AddGroup.class, EditGroup.class })
    private String sort;

    /**
     * 简拼
     */
    @NotBlank(message = "简拼不能为空", groups = { AddGroup.class, EditGroup.class })
    private String spell;

    /**
     * 是否叶子节点
     */
    @NotNull(message = "是否叶子节点不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer hasLeaf;

    /**
     * 状态（基地时有效）：0=筹备，1=投产，2=已改造
     */
    @NotBlank(message = "状态（基地时有效）：0=筹备，1=投产，2=已改造不能为空", groups = { AddGroup.class, EditGroup.class })
    private String state;

    /**
     * 经度
     */
    @NotNull(message = "经度不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal longitude;

    /**
     * 纬度
     */
    @NotNull(message = "纬度不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal latitude;

    /**
     * 备注信息
     */
    @NotBlank(message = "备注信息不能为空", groups = { AddGroup.class, EditGroup.class })
    private String info;

    /**
     * 详细地址
     */
    @NotBlank(message = "详细地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String address;

    /**
     * 创建者
     */
    @NotNull(message = "创建者不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long creator;

    /**
     * 创建时间
     */
    @NotNull(message = "创建时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date createDate;

    /**
     * 更新者
     */
    @NotNull(message = "更新者不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long updater;

    /**
     * 更新时间
     */
    @NotNull(message = "更新时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date updateDate;

    /**
     * 基地编号
     */
    @NotBlank(message = "基地编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String code;

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long serial;

    /**
     *
     */
    @NotBlank(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private String person;

    /**
     *
     */
    @NotBlank(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private String personTel;

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date startTime;


}
